unity main texture not working

96

unity main texture not working -

//Get object renderer
rend = GetComponent<MeshRenderer>();

//deprecated do not use
rend.material.maintexture = newTexture;

//proper method
rend.material.SetTexture("_BaseMap",newTexture);

Comments

Submit
0 Comments